package com.definity.toolkit.web.security;

import java.util.LinkedHashSet;
import java.util.Set;

import com.definity.security.common.Role;
import com.definity.security.common.User;

public class MockUser implements User {

	private final String name;
	private final Set<Role> roles = new LinkedHashSet<Role>();

	public MockUser(String name) {
		this.name = name;
	}

	public MockUser(String name, Set<Role> roles) {
		this.name = name;
		this.roles.addAll(roles);
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Set<Role> getRoles() {
		return roles;
	}

}
